package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WJ
 * Date: 2023-03-04
 * Time: 16:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {
    private Integer id;
    private Integer active_id;      // 活动id
    private String context;         // 活动内容
    private Integer comment_id;     // 评论人id
    private String comment_name;    // 评论人姓名
    private String comment_photo;   // 评论人头像
    private String status;          // 评论人的身份
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date comment_time;      // 评论时间
}
